package com.hz.web.service.impl;

import com.hz.web.dao.CertificatoryPerMapper;
import com.hz.web.dao.EmployeeMapper;
import com.hz.web.entity.CertificatoryPer;
import com.hz.web.service.ICertificatoryPerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class CertificatoryPerImpl implements ICertificatoryPerService {
    @Resource
    CertificatoryPerMapper certificatoryPerMapper;
    @Resource
    EmployeeMapper employeeMapper;


    @Override
    public int insertCertificatory(CertificatoryPer entity) {
        return certificatoryPerMapper.insert(entity);
    }

    @Override
    public List<CertificatoryPer> selectByNameOrNum(String nameOrNum) {
        return certificatoryPerMapper.selectByNameOrNum(nameOrNum);
    }

    @Override
    public List<CertificatoryPer> selectByUserId(Map<String, Object> parmsMap) {
        return certificatoryPerMapper.selectByUserId(parmsMap);
    }

    @Override
    public int selectByUserIdCount(Map<String, Object> parmsMap) {

        return certificatoryPerMapper.selectByUserIdCount(parmsMap);
    }

    @Override
    public int updateCertificatory(String entity) {
        return employeeMapper.updateCertificatory(entity);
    }

}
